package cn.stylefeng.guns.modular.time.model.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Data
public class NotificationRequest {

    @ChineseDescription("消息ID")
    @NotNull(message = "消息ID不能为空", groups = {detail.class, delete.class})
    private Long notificationId;

    @ChineseDescription("标题")
    @NotBlank(message = "标题不能为空", groups = {add.class})
    private String title;

    @ChineseDescription("消息内容")
    private String content;

    @ChineseDescription("AI整理内容")
    private String aiContent;

    @ChineseDescription("原地址")
    private String sourceUrl;

    @ChineseDescription("类型")
    private String type;

    @ChineseDescription("业务唯一标识")
    private String uniqueId;

    @ChineseDescription("JSON详情")
    private String details;

    @ChineseDescription("页码")
    private Integer pageNo = 1;

    @ChineseDescription("每页条数")
    private Integer pageSize = 10;

    public @interface add {}
    public @interface delete {}
    public @interface detail {}
}